import React, { Component } from 'react'
import { Redirect, Switch, Route, NavLink } from 'react-router-dom'
import Abbr from './Contents/Abbr'
import Home from './Contents/Home'
import Entry from './Contents/Entry'
import About from './Contents/About'
import Register from './Contents/Register'
import Login from './Contents/Login'
import Ditais from './Contents/ditais/Ditais'
export default class content extends Component {

    render() {
        return (
            <div>
                <div className="col-md-7 col-md-offset-1">
                    <Switch>
                        <Route path='/Home' component={Home} ></Route>
                        <Route path='/Entry' component={Entry} ></Route>
                        <Route path='/Abbr' component={Abbr} ></Route>
                        <Route path='/About' component={About} ></Route>
                        <Route path='/Register' component={Register} ></Route>
                        <Route path='/Login' component={Login} ></Route>
                        <Route path='/Ditais' component={Ditais} ></Route>
                        <Redirect to='/Home' ></Redirect>
                    </Switch>
                </div>
            </div>
        )
    }
}
